package com.ddwl.user.dao.model;


import lombok.Getter;
import lombok.Setter;
import org.springframework.data.mongodb.core.mapping.Document;

import javax.persistence.Id;
import java.time.Instant;

/**
 * @Author hemiaojun
 * @Date 2021/8/19 9:09
 * 设备连接记录
 */
@Setter
@Getter
@Document(collection = "device_conn_record")
public class DeviceConnRecord {

    /**
     * ID
     */
    @Id
    private String id;
    /**
     * 平台 android or ios
     */
    private String platform;
    /**
     * 用户ID
     */
    private String userId;
    /**
     * mac地址
     */
    private String mac;
    /**
     * 连续天数
     */
    private Integer continuousDay;
    /**
     * 创建时间
     */
    private Instant gmtCreated;
    /**
     * 修改时间
     */
    private Instant gmtModified;

}
